GXX=g++
DEBUG=
TARGETLIB=./libTcpServer.so
TARGET=server
all:
	$(GXX) $(DEBUG) -c -fPIC TCPServer.cpp
	$(GXX) $(DEBUG) -c -fPIC server.cpp
	$(GXX) $(DEBUG) -shared -fPIC -o $(TARGETLIB) TCPServer.o
	$(GXX) $(DEBUG) -o $(TARGET) server.o $(TARGETLIB) -s -lpthread
	
clean:
	-rm -f $(TARGET) *.o $(TARGETLIB)
